<template>
  <view class="list flex-direction-column">
    <view
      class="item flex-direction-column"
      v-for="item in props.list"
      :key="item.id"
      @click="tools.navTo('/pagesA/rich/mess?params=' + JSON.stringify({ type: 1, id: item.id, title: '消息' }))"
    >
      <view class="title one-line">{{ item.title }}</view>
      <view class="time">{{ item.create_time }}</view>
    </view>
  </view>
</template>

<script setup lang="ts">
import { PropType } from 'vue'
import { Tlist } from '@/typings/list'
import tools from '@/utils/tools'
const props = defineProps({
  list: {
    type: Array as PropType<Tlist['item'][]>
  }
})
</script>

<style lang="scss" scoped>
.list {
  .item {
    padding-bottom: 30rpx;
    margin: 30rpx 30rpx 0 30rpx;
    border-bottom: 1px solid #eee;
    .title {
      height: 44rpx;
      font-size: 32rpx;
      line-height: 44rpx;
      // color: #777777;
    }
    .time {
      height: 34rpx;
      font-size: 28rpx;
      line-height: 34rpx;
      color: #999999;
      margin-top: 8rpx;
    }
  }
}
</style>
